package service

import (
	"learning/gooop/spring/demo/order/dto"
	"learning/gooop/spring/demo/order/entity"
)

type IOrderService interface {
	Save(head *entity.OrderHeadEntity, items []*entity.OrderItemEntity) error
	Get(orderID int) (error, *dto.OrderDTO)
	Query(customerID int, statusFlag int, dateFrom string, dateTo string, pageNO int, pageSize int) (error, []*dto.OrderHeadDTO)
}
